<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:p="http://primefaces.org/ui">
<body>
	<ui:composition template="../templates/mainTemplate.xhtml">
		<ui:define name="content">
			<h:form id="myForm">
				<p:panel header="#{messages['userTableMatchDefination.title']}">
					<h:panelGrid columns="2" styleClass="alignPanel">
						<p:dataTable var="table" value="#{cUserTableMatchForm.excludedTableBeans}">
							<p:column headerText="#{messages['foodCategory.selection']}">
								<p:selectBooleanCheckbox value="#{table.selected}" />
							</p:column>
							<p:column headerText="#{messages['userTableMatchDefination.allTables']}">
								<h:outputText value="#{table.table.name}" id="baseCategory" />
							</p:column>

							<f:facet name="footer">
								<p:commandButton value="#{messages['action.define']}" action="#{cUserTableMatchAction.addToUser()}"
									update=":myForm" />
							</f:facet>
						</p:dataTable>

						<p:dataTable var="table" value="#{cUserTableMatchForm.includedTableBeans}">
							<p:column headerText="#{messages['foodCategory.selection']}">
								<p:selectBooleanCheckbox value="#{table.selected}" />
							</p:column>
							<p:column headerText="#{messages['userTableMatchDefination.userTableMatch']}">
								<h:outputText value="#{table.table.name}" id="test" />
							</p:column>
							<f:facet name="footer">
								<p:commandButton value="#{messages['action.delete']}" action="#{cUserTableMatchAction.removeFromUser()}"
									update=":myForm" />
							</f:facet>
						</p:dataTable>
					</h:panelGrid>
				</p:panel>
			</h:form>

		</ui:define>
	</ui:composition>
</body>
</html>